<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Rocca Store</title>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>

<link href="assets/css/reset.css" rel="stylesheet" type="text/css" />
<link href="assets/css/mobile.css" rel="stylesheet" type="text/css" />



<script>
		$(function() {
			$('#content a').click(function(e) {
				//$("#loading").show();
				href = $(this).attr("href");
				
				loadContent(href);
				
				// HISTORY.PUSHSTATE
				history.pushState('', 'New URL: '+href, href);
				e.preventDefault();
				
				
			});
			
			// THIS EVENT MAKES SURE THAT THE BACK/FORWARD BUTTONS WORK AS WELL
			window.onpopstate = function(event) {
				//$("#loading").show();
				console.log("pathname: "+location.pathname);
				loadContent(location.pathname);
			};

		});
	
		function loadContent(url){
			// USES JQUERY TO LOAD THE CONTENT

			$('#content').load(url + ' #content');

			
		}
</script>
</head>
<body>

<header>
	
<nav class="left">
<a href="" class="active">Upload</a>

</nav>

<nav class="right">
<a href="">Gallery</a>
</nav>


<a href="" class="logo"><img src="assets/images/logo.png" alt="Rocca Store logo" /></a>



</div>
	
</header>

<div id="content">

	<div class="share">
		<h1>Share link</h1>

		<input type="text" class="left" value="http://store.rocca.cc/kl4jd" />
		<button class="copy-link left">Copy</button>
	</div> <!-- /share -->



</div> <!-- /content -->

<div id="footer">
&copy; 2012 Rocca Store
</div> <!-- /footer -->


</body>
</html>